# coding:utf-8
__author__ = 'fang'
__date__ = '2017/4/21 0021 17:15'


from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator



class LoginRequiredMixin(object):

    @method_decorator(login_required(login_url='/login/'))

    def dispath(self,request,*args,**kwagrs):
        return super(LoginRequiredMixin,self).dispatch(request,)